<?php
include "includes/db.php";
$mysqli = new MossCMS();

if ($_SESSION[$prefix.'_username'] == ""){  $_SESSION[$prefix.'_groups'] = array(0);}

?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Moss, Inc - Portal</title>
<link href="includes/sw_orig.css" rel="stylesheet" type="text/css" media="screen" />
<link href="includes/local.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<div id="container">
  <div id="header">
		<?php include "includes/header.php"; ?>
	</div>


<div id="mainContent" class="frontpage">

<div id="front_col1"> 
		
	            
	
	
  <div id="news_feed_holder" class="feed">
  <h2>News</h2>
  <ul>	
  <?php
				$results = $mysqli->news_list_frontend($_SESSION[$prefix.'_groups']);
	      			for($x=0; $x < sizeof($results); $x++) {
	      			$date = date('m/d/Y',(strtotime($results[$x]['content_date'])));
	      			?>	
				

				<li><a href="article.php?id=<?php echo $results[$x]['content_id'];?>">
					<img src='<?php echo $results[$x]['content_thumb'];?>' alt='<?php echo $results[$x]['content_title'];?>' border='0' align='left'  />					
					<span class="title"><?php echo $results[$x]['content_title'];?></span><br />
					<span class="desc"><?php echo $date;?></span></a>
					
					<br class="clear">
				
				</li>
			 <?php
				if($x > 5){break;}
				 } ?>
         
       
         
         
			</ul>
<p><a href="news.php">See All News</a></p>
 
   </div>					  
</div> <!-- END front_col1 -->

	
	
	
<div id="front_col2">
		

				
         <div id = "docs_feed_holder" class="feed">
       			<!--Documents & Members Area Output-->
              <h2><a href="http://www.eiurunning.com/members/documents.php" title="See All Documents">Documents/Links</a></h2>
				<ul>
				
				
				<?php
				$results = $mysqli->doc_list_frontend($_SESSION[$prefix.'_groups']);
	      			for($x=0; $x < sizeof($results); $x++) {

						$date = date('m/d/Y',(strtotime($results[$x]['content_date'])));
				?>

			<li>
				<span class="title left"><a href="<?php echo $results[$x]['content_loc'];?>"><?php echo $results[$x]['content_title'];?></a></span>
				<div class="info">
					<span class="desc"><?php echo $date;?></span><br />
				</div>
				<br class="clear">
			</li>
				
					<?php
					if($x > 5){break;}	
					}
					?>
			
				</ul>
				<p><a href="docs.php">See All Docs</a></p>
				</div> <!-- END front_col2_docs -->		
		</div><!-- END front_col2 -->
			 
		
		  
		<div class="clear"></div>	

			
    </div>  <!-- END MAIN -->
        <div id="front_bottom" class="frontpage">
        
 
<div id="front-bottom-weather"> 
        	<h2>Weather</h2> 
        	<div id="wx_module_1857"> 
   <a href="http://www.weather.com/weather/local/61920">Charleston Weather Forecast, IL (61920)</a></div> 
 
<script type="text/javascript"> 
 
   /* Locations can be edited manually by updating 'wx_locID' below.  Please also update */
   /* the location name and link in the above div (wx_module) to reflect any changes made. */
   var wx_locID = '61920';
 
   /* If you are editing locations manually and are adding multiple modules to one page, each */
   /* module must have a unique div id.  Please append a unique # to the div above, as well */
   /* as the one referenced just below.  If you use the builder to create individual modules  */
   /* you will not need to edit these parameters. */
   var wx_targetDiv = 'wx_module_1857';
 
   /* Please do not change the configuration value [wx_config] manually - your module */
   /* will no longer function if you do.  If at any time you wish to modify this */
   /* configuration please use the graphical configuration tool found at */
   /* https://registration.weather.com/ursa/wow/step2 */
   var wx_config='SZ=300x250*WX=FWD*LNK=RCTN*UNT=F*BGI=snow*MAP=null|null*DN=eiurunning.com*TIER=0*PID=1031705822*MD5=ef03b99fb79efd9b08e4227081631b05';
 
   document.write('<scr'+'ipt src="'+document.location.protocol+'//wow.weather.com/weather/wow/module/'+wx_locID+'?config='+wx_config+'&proto='+document.location.protocol+'&target='+wx_targetDiv+'"></scr'+'ipt>');  
</script> 
        	

<div id="front-bottom-image">
	<h2 class='nav-header'>PhotoStream</h2>
	<div class="front-image-pic">

  
<script type="text/javascript" src="http://www.flickr.com/badge_code_v2.gne?show_name=1&count=1&display=random&size=m&layout=x&context=&source=user_set&user=eiusteepler&set=72157622197060396"></script>
<a href="http://www.flickr.com/photos/eiusteepler/" target="_blank">View EIU's PhotoStream.</a> 
  
     </div>
</div>    
 	
        </div> <!--END BOTTOM --> 
            
		<div class="clear"></div>	

 
<div id="footer">
	<?php include "includes/footer.php"; ?>
</div>
<!-- end #container --></div>

<br />
</body>
</html>
